package com.nbcio.iot.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.nbcio.iot.domain.entity.IotDeviceGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.util.List;

/**
 * 设备分组视图对象 iot_device_group
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = IotDeviceGroup.class)
public class IotDeviceGroupVo {

    @ExcelProperty(value = "分组ID")
    private Long groupId;

    @ExcelProperty(value = "分组名称")
    private String groupName;

    @ExcelProperty(value = "父分组ID")
    private Long parentId;

    @ExcelProperty(value = "描述")
    private String description;

    @ExcelProperty(value = "显示顺序")
    private Integer orderNum;

    @ExcelProperty(value = "状态")
    private String status;

    /** 子分组 */
    private List<IotDeviceGroupVo> children;
} 